package com.ruoyi.medical.domain;

import com.ruoyi.common.domain.doctor.Doctor;
import com.ruoyi.common.domain.doctor.Patient;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
/**
 * 处方管理对象 prescription
 * 
 * @author WGH
 * @date 2025-08-13
 */
public class Prescription extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 处方ID */
    private Long id;

    /** 诊断信息 */
    @Excel(name = "诊断信息")
    private String diagnosis;

    /** 患者 */
    @Excel(name = "患者")
    private Long patientId;

    /** 医生 */
    @Excel(name = "医生")
    private Long doctorId;

    /** 删除状态 */
    private Integer del;

    /** 关联医生表 */
    private Doctor doctor;

    /** 关联患者表 */
    private Patient patient;


    /** 处方项列表 */
    private List<PrescriptionItem> prescriptionItems;
}
